/*
 * @Author: Qi
 * @Date: 2023-02-24 11:28:38
 * @LastEditTime: 2023-02-28 23:16:42
 * @Description:  单位tree
 */
import { defineStore } from 'pinia'
import {getTreeDate}  from '@/api'
export const anitTreeStore = defineStore({
    id : 'app-tree',
    state: ()=>({
         treeList:[]
    }),
    actions: {
       async getTreeList(){
            const result = await getTreeDate()
            this.treeList=result.treeData
           
      }
    },
})